package com.houxm.dao.impl;

import com.houxm.dao.UserDao;
import com.houxm.entity.User;

public class UserDaoImpl extends BaseDaoImpl implements UserDao {

	public User getUserByUsername(String username) {
		User user = (User)this.getHibernateTemplate().get(User.class,username);
		return user ;
	}

	public void deleteUser(User user) {
		this.getHibernateTemplate().delete(user);
	}

	public void saveUser(User user) {
		this.getHibernateTemplate().save(user);
	}

	public void updateUser(User user) {
		this.getHibernateTemplate().update(user);
	}

}
